/*访问后台的代码*/
layui.define([], function(exports) {
    var api={
            update:function(form,callback){
                Lib.submitForm("/cms/skill/update.json",form,{},callback)
            },
            addSkill:function(form,callback){
                Lib.submitForm("/cms/skill/add.json?judge=add",form,{},callback)
             },
             savedeclaration: function (form, callback) {
                 Lib.submitForm("/cms/skill/add.json?judge=declare", form, {}, callback)
              },
             editandsave:function(form,callback){
                    Lib.submitForm("/cms/skill/update.json?judge=add",form,{},callback)
              },
            editorialapplication:function(form,callback){
                  Lib.submitForm("/cms/skill/update.json?judge=declare",form,{},callback)
             },
            AcceptanceOK: function (form, callback) {//受理通过
                 Lib.submitForm("/cms/skill/AcceptanceOK.json", form, {}, callback)
             },
            FirstTrial: function (form, callback) {//初审通过
                  Lib.submitForm("/cms/skill/FirstTrial.json", form, {}, callback)
            },
            ReviewThrough: function (form, callback) {//复审通过
                 Lib.submitForm("/cms/skill/ReviewThrough.json", form, {}, callback)
             },
            AdmissibleReturn: function (form, callback) {//受理退回
                Lib.submitForm("/cms/skill/AdmissibleReturn.json", form, {}, callback)
            },
            initialReview: function (form, callback) {//初审退回
                Lib.submitForm("/cms/skill/initialReview.json", form, {}, callback)
            },
            Reexamination: function (form, callback) {//复审退回
                Lib.submitForm("/cms/skill/Reexamination.json", form, {}, callback)
            },
            Admissibility: function (form, callback) {//受理终止
                Lib.submitForm("/cms/skill/Admissibility.json", form, {}, callback)
            },
            FirstTrialTermination: function (form, callback) {//初审终止
                Lib.submitForm("/cms/skill/FirstTrialTermination.json", form, {}, callback)
             },
            RetrialTermination: function (form, callback) {//复审终止
                Lib.submitForm("/cms/skill/RetrialTermination.json", form, {}, callback)
            },
            del:function(ids,callback){
                Common.post("/cms/skill/delete.json",{"ids":ids},function(){
                    callback();
                })
            }
		
    };
    exports('skillApi',api);
});